package com.aaa.memberservice.service.impl;

import com.aaa.common.entity.Order;
import com.aaa.memberservice.service.OrderService;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: YuXin
 * @Date : Created in 2020/11/5 16:14
 * @ClassName : OrderServiceFallBack
 * @Description :
 * @Package_Name : com.aaa.snsservice.service.impl
 */
//@Service
@Component
public class OrderServiceFallBack implements OrderService {
    @Override
    public List<Order> selectAllOrder() {
        Order order = new Order();
        order.setId(4444);
        order.setMemberUsername("服务器报错，熔断测试备用方法");
        List<Order> list = new ArrayList<>();
        list.add(order);
        return list;
    }
}
